package com.stsmobile.dataclass;

/**
 * Wrapper class for a specimen
 * @author Dave
 *
 */
public class Specimen {
	private int specimen_id,study_id,patient_id,quantity,intact,damaged,missing;
	private String specimen_title,specimen_description,collection_date,collection_method;

	@Override
	public String toString(){
		return "\n> Specimen ID#: "+specimen_id+
		"\n\t Title: "+specimen_title+"\n\t Description: "+specimen_description+
		"\n\t Study ID#: "+study_id+"\n\t Patient ID#: "+patient_id+
		"\n\t Total Specimens: "+quantity+"\n\t Intact Specimens: "+intact+
		"\n\t Damaged Specimens: "+damaged+ "\n\t Missing Specimens: "+missing+
		"\n\t Collected On: "+collection_date+"\n\t Collection Method: "+collection_method+"\n";
	}
	
	/**
	 * Creates a specimen with the desired attributes
	 * 
	 * @param spec_id The specimen ID number
	 * @param stud_id The study ID number
	 * @param pat_id The patient ID number
	 * @param qty The number of specimens
	 * @param _intact The number of intact specimens
	 * @param _damaged The number of damaged specimens
	 * @param _missing The number of missing specimens
	 * @param spec_title The specimen title
	 * @param spec_description The specimen description
	 * @param collect_date The date of collection
	 * @param collect_method The method of collection
	 */
	public Specimen(int spec_id, int stud_id, int pat_id, int qty, 
			int _intact, int _damaged, int _missing, String spec_title, 
			String spec_description, String collect_date, String collect_method)
	{
		specimen_id=spec_id;
		study_id=stud_id;
		patient_id=pat_id;
		quantity=qty;
		intact=_intact;
		missing=_missing;
		damaged=_damaged;
		specimen_title=spec_title;
		specimen_description=spec_description;
		collection_date=collect_date;
		collection_method=collect_method;
	}
	
	public int getIntact() {
		return intact;
	}
	public void setIntact(int intact) {
		this.intact = intact;
	}
	public int getDamaged() {
		return damaged;
	}
	public void setDamaged(int damaged) {
		this.damaged = damaged;
	}
	public int getMissing() {
		return missing;
	}
	public void setMissing(int missing) {
		this.missing = missing;
	}
	public int getSpecimenID() {
		return specimen_id;
	}
	public int getStudyID() {
		return study_id;
	}
	public int getPatientID() {
		return patient_id;
	}
	public int getQuantity() {
		return quantity;
	}
	public String getSpecimenTitle() {
		return specimen_title;
	}
	public String getSpecimenDescription() {
		return specimen_description;
	}
	public String getCollectionDate() {
		return collection_date;
	}
	public String getCollectionMethod() {
		return collection_method;
	}
}
